package org.fin.minicat.protocol;

public enum HttpStatusCode {

  OK(200, "OK"),
  NOT_FOUND(404, "NOT FOUND"),
  INTERNAL_SERVER_ERROR(500, "Internal Server Error");
  ;

  private int statusCode;

  private String description;

  HttpStatusCode(int statusCode, String description) {
    this.statusCode = statusCode;
    this.description = description;
  }

  public int getStatusCode() {
    return statusCode;
  }

  public void setStatusCode(int statusCode) {
    this.statusCode = statusCode;
  }

  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  @Override
  public String toString() {
    return statusCode + " " + description;
  }
}
